<div class="hidden OptionTitle">修改客户信息</div>
<div class="hidden OptionBtn">保存</div>

<form role="form" method="post" action="{:U('update')}" class="checkoutform">
  <input type="hidden" name="id" value="{$info.id}">
  <div class="form-group">
    <label for="email">客户名称</label>
    <input class="form-control" datatype="*" value="{$info.title}" id="title" name="title" placeholder="客户名称" type="text">
  </div>
  <div class="form-group text-input opacity ">
    <label for="category">客户分类</label>
    <div class="opacityb">
      <volist name="candy" id="candy">
        <label class="checkbox-line" style="margin-right:10px"><input type="checkbox"  name="customercategory_id[]" value="@{$candy.id}@" <php>if(strpos($info['customercategory_id'],$candy['id'] )){echo 'checked';}</php> ><span>{$candy.name}</span></label>
      </volist>
    </div>
  </div>
  <div class="form-group">
    <label for="email">联系人</label>
    <input class="form-control" datatype="*" id="contacts" value="{$info.contacts}" name="contacts" placeholder="联系人" type="text">
  </div>
  <div class="form-group">
    <label for="email">手机号码</label>
    <input class="form-control" datatype="m" id="mobile" value="{$info.mobile}" name="mobile" placeholder="手机号码" type="text">
  </div>
  <div class="form-group">
    <label for="email">联系电话</label>
    <input class="form-control" datatype="*" id="tel" name="tel" value="{$info.tel}" placeholder="联系电话" type="text">
  </div>
  <div class="form-group">
    <label for="email">QQ</label>
    <input class="form-control" datatype="*" id="QQ" name="QQ" value="{$info.QQ}" placeholder="QQ" type="text">
  </div>
  <div class="form-group">
    <label for="email">微信号</label>
    <input class="form-control" datatype="*" id="weixin" name="weixin" value="{$info.weixin}" placeholder="微信" type="text">
  </div>
  <div class="form-group">
    <label for="email">公司地址</label>
    <textarea name="address" class="form-control" style="height:50px;" placeholder="公司地址">{$info.address}</textarea>
  </div>
</form>